f(x)=\ln(1+x)

f: y = If[-1 < x < 1, log(1 + x)]
N = 1 (slider from 1 to 8, step 1)
g = Sum(((-1)^(n + 1) * x^(n) / n), n, 1, N)